package com.sky.service;

import com.sky.entity.AddressBook;

import java.util.List;

/**
 * @Author: WangHongKun
 * @Date: 2022/9/22 16:58
 * @Email: 2028911483@qq.com
 * @Phone: 18683977706
 */


public interface AddressBookService {

    void  add(AddressBook addressBook);

    List<AddressBook> getAllAddressByUserId();

    AddressBook getDefaultAddress();

    void updateAddressById(AddressBook addressBook);

    void deleteById(Long id);

    AddressBook getById(Long id);
    void setDefault(AddressBook addressBook);
}
